package cn.hiapi.user.query;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.jpa.query.BasicQuery;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author AdinZ
 * @date 2022/12/31 22:12
 */
@Setter
@Getter
public class HistoryRecordQuery extends BasicQuery {

    @JSONField(deserialize = false, serialize = false)
    @ApiModelProperty(hidden = true)
    private long uid;

    @Override
    public QueryWrapper getQueryWrapper() {
        QueryWrapper wrapper = super.getBasicQueryWrapper();
        wrapper.eq("uid", uid);

        return wrapper;
    }
}
